In computing, a hidden file or hidden directory is a file system object (such as a computer file or directory) that is excluded from a directory content report unless explicitly requested. The value of hiding files is generally to avoid showing the computer user files that are not likely to be of interest to them. The feature is not a security mechanism because access is not restricted; the user can request that normally-hidden files be displayed. Hiding is a feature of the computer program that display file system objects; not inherently with either the operating or file systems.
According to Rob Pike, dotfiles were an unintended consequence of the implementation of the hierarchical file system during the Unix 2nd Edition re-write, which introduced . as a name in a directory that refers to the directory itself and .. as a name in a directory that refers to its parent directory. In order to exclude those two entries from ls output, all entries prefixed with . were omitted. This meant that any file or directory could be excluded from the output of ls by giving it a file name with . as the first character.
Commonly, user-specific application configuration information is stored in the user's home directory as a dotfile. Notable dotfiles include startup such as .profile, .login, and .cshrc as well as .plan and .project which are used by the finger and name commands.One user could lookup another by using the command along with the username (and hostname if not on the local host), and the finger service would respond with the other user's current status, and the contents of the .plan and .project files in that user's $HOME folder. Many applications, from bash to desktop environments such as GNOME, store user-specific configuration this way, but the XDG Base Directory Specification aims to migrate such config files to be non-hidden (not starting with ) but stored in a hidden directory $HOME/.config.
This convention is not enforced by the file or operating systems. Each app is responsible for following the convention.
The invisible attribute can be set or cleared via the SetFile command. For example, command line SetFile -a V jimbo hides the file . Starting in Snow Leopard, the [[chflags]] command can also be used. For example, chflags hidden jimbo is equivalent.
Even when excluded from view, an item can be accessed by entering its path in the address bar.
When included, items with the hidden attribute are displayed with transparency to visually indicate the attribute.
The content of a directory can also be hidden by appending a pre-defined CLSID to the end of the folder name. The directory is still visible, but its content becomes one of the Windows Special Folders. However, the actual content can be reteived via the dir command.
|
|